CRATEIT-151,152 Pull apart crate.js, include js file in index.php