Updated the JS documentation