Yeah, clicking outside the window is the most annoying part of the whole thing. I used Phaser to build it and it has a mouse lock feature but it changes how the mouse works so unfortunately I can't just turn it on. I was thinking about going back and implementing it and releasing this on other platforms like Newgrounds and Kongregate.