fixed angular errors

In separating javascript files there have been errors in pushing to Heroku. Changes have been made to address these issues.