title: ExecJS::ProgramError: Unexpected character '#'
body: <p>I'm trying to deploy to Heroku and I am met with this error. I've done some research and tried uninstalling and reinstalling some gems after looking at relevant posts but I'm not really sure what's wrong here as I am not familiar with what the actual problem is. Please help! What should I do? So far I'm thinking it has something to do with the jquery.</p>
  
  <pre><code>ExecJS::ProgramError: Unexpected character '#' (line: 13912, col: 0, pos: 394110)
  remote:        Error
  remote:        at new JS_Parse_Error (/tmp/execjs20150204-1143-zrnj29js:2359:10623)
  remote:        at js_error (/tmp/execjs20150204-1143-zrnj29js:2359:10842)
  remote:        at parse_error (/tmp/execjs20150204-1143-zrnj29js:2359:12560)
  remote:        at Object.next_token [as input] (/tmp/execjs20150204-1143-zrnj29js:2359:17582)
  remote:        at next (/tmp/execjs20150204-1143-zrnj29js:2359:18900)
  remote:        at semicolon (/tmp/execjs20150204-1143-zrnj29js:2359:19745)
  remote:        at simple_statement (/tmp/execjs20150204-1143-zrnj29js:2359:22580)
  remote:        at /tmp/execjs20150204-1143-zrnj29js:2359:20708
  remote:        at /tmp/execjs20150204-1143-zrnj29js:2359:19957
  remote:        at /tmp/execjs20150204-1143-zrnj29js:2359:31968
  remote:        at Object.parse (/tmp/execjs20150204-1143-zrnj29js:2360:152)
  remote:        (in /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/app/assets/javascripts/application.js)/tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/execjs-2.2.2/lib/execjs/external_runtime.rb:64:in `extract_result'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/execjs-2.2.2/lib/execjs/external_runtime.rb:29:in `exec'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/uglifier-2.7.0/lib/uglifier.rb:200:in `run_uglifyjs'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/uglifier-2.7.0/lib/uglifier.rb:178:in `compile'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/uglifier_compressor.rb:25:in `evaluate'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:197:in `block in evaluate'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `each'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/context.rb:194:in `evaluate'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/bundled_asset.rb:25:in `initialize'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `new'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:377:in `build_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:94:in `block in build_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/caching.rb:58:in `cache_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:93:in `build_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/base.rb:287:in `find_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/index.rb:61:in `find_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:211:in `block in find_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:257:in `benchmark'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:210:in `find_asset'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:119:in `block in compile'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `each'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/sprockets/manifest.rb:118:in `compile'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:70:in `block (3 levels) in define'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-2.12.3/lib/rake/sprocketstask.rb:146:in `with_logger'
  remote:        /tmp/build_eb6f5cb07cab440eb52a1d47cb70ca23/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.2.2/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
  remote:        Tasks: TOP =&gt; assets:precompile
  remote:        (See full trace by running task with --trace)
  </code></pre>
  
  <p>gem file
      source '<a href="https://rubygems.org" rel="nofollow">https://rubygems.org</a>'
      ruby '2.0.0'</p>
  
  <pre><code>gem 'rails', '4.2.0'
  gem 'sass-rails', '~&gt; 5.0'
  gem 'uglifier', '&gt;= 1.3.0'
  gem 'coffee-rails', '~&gt; 4.1.0'
  gem 'jquery-rails'
  gem 'turbolinks'
  gem 'jbuilder', '~&gt; 2.0'
  gem 'bootstrap-sass', '~&gt; 3.3.3' 
  gem 'autoprefixer-rails'
  
  group :development, :test do
   gem 'byebug'
   gem 'web-console', '~&gt; 2.0'
   gem 'spring'
   gem 'sqlite3'
  end
  
  group :production do
      gem 'pg'
      gem 'rails_12factor'
  end
  
  group :doc do
      gem 'sdoc', '~&gt; 0.4.0', require: false
  end
  </code></pre>
  
  <p>/welcome.js</p>
  
  <pre><code>(function($) {
          var $container = $(".parallax");
          var $divs = $container.find("div.parallax-background");
          var thingBeingScrolled = document.body;
          var liHeight = $divs.eq(0).closest("li").height();
          var diffHeight = $divs.eq(0).height() - liHeight;
  
      var i,len,li,offset,scroll,top;
  
      var render = function() {
          top = thingBeingScrolled.scrollTop;
          //loop through divs 
          for(i=0,len=$divs.length;i&lt;len;i++) {
                  //get one div
                  div = $divs[i];
  
                  //get the parent LI
                  li = div.parentNode;
                  //calculate the offsetTOP of the div
                  offset = $(div).offset().top
                  //calculate the amount to scroll
                  scroll = Math.round(((top - offset)/liHeight) * diffHeight);
                  //apply scroll amount
                  div.style.webkitTransform = "translate3d(0px,"+scroll+"px,0px)";
          }
      };
  
      (function loop(){
              requestAnimationFrame(loop);
              render();
          })();
  
  })(jQuery);
  </code></pre>