Game should now pause when the browser tab is inactive. Added a uuid js function in preparation for implementing savegames.