fixed the JS