Refactor js into a plugin
Merge branch 'gh-pages'

Conflicts:
	index.html