moved the javascript as a matter of experiment