moved js to the right place
fixes