moved Jscript loads to header because haml is a dickhead