Makes pointerLock object for better outside access, tries unittests

- If unittests.js is commented out, everythign works. If it is
active, console gets the message that there is no
pointerLock.lockElement