Refactor to incoperate _head js css into _head