Load js on .ready()

Wrapped custom.js in .ready function to ensure scripts load properly when included in asset pipeline. This should allow Heroku to properly load required scripts in staging.