added fullscreen error handler, in case user disallows fullscreen
the canvas size is changed with css, and it the size of it only relies on itself rather than its parent container, also the untrustable fullscreen boolean has been replaced
better reuse of the resize() function
added fullscreen error handler, in case user disallows fullscreen
merge conflict: changed fullscreen button to "Fullscreen"/"Exit"