Saved the appid response for use later in the app

The app response's  data section contains information needed elsewhere in the program (the template id), so changed ```this.appResponse = response;``` in template.js to ```this.config.appResponse = response;```.  (this.appResponse does not appear to be used)

Also made modifications necessary for JavaScript source to pass JSLint.