Making the application serve up the javascript for the home page only, and not serve up js for the API