moved js to top