moved js to header