heroku-related fixes: added require self in javascript application script, adding heroku rails 4 assets