Removed trailing commas (and fixed jshint conf file)
Used requirejs text plugin to load templates asynchronously