Put the javascript in the right place.