I think the engine multiplies mouse movement by some factor, so the OS cursor diverges from the game cursor. But in fullscreen+mouselock mode it should work fine, not sure why not in that link, but here is a link to another wip port of the same game engine to JS/WebGL,