modifications of the JS