Fix javascript issues deploying to server. Should take care of all javascripts objects.