moving js to the end