Making a hacky mess out of the JS includes to get it working on Heroku.