Switched around order of loading JS
Added the init code inline