javascript not running, going to production