Revert "Cleaned up the JS a bit"

This reverts commit 429a8678fedb7247c825df3acd3f17a6fca2fbfa.

Conflicts:
	app/assets/javascripts/front.js.erb