JS moved from homepage to seperate JS file.

	JS has been moved over to a seperate JS file and executes
	at the correct times (turbolink integration).

	Closes issue #10