Use autoDetectRenderer instead of CanvasRenderer

Fixes the issues with the site not running on Linux but using autoDetectRenderer to allow use of WebGL on Linux instead of Canvas. Tested using an Ubuntu VirtualBox.

Also has some minor JSHint / whitespace fixes.