put in the JS code in a different place