got the JS working