moved js to end