move js to header