move js stuff to head