Using the template, more correctly than before

Added JS page switching via window.location.hash