Set up testing (grunt, jshint) and Travis CI config

Also changed setupFullscreen() into a variable assignment because
it is re-assigned later.