Moved scripts to the header in order to get angularjs to initialize faster