moved addJs to already existing head reference for readability