You do not have SSL on your apache server?
I think that could be it. I believe that the vnc library here is requiring a secure connection. Do you have any error messages out of your browsers console? (open developer tools with F12 and navigate to the console tab)