initial js restructure. emptied site_base.html