cleaning up main html pages so init is it's own separate js file.