[refs #1303] Updated the JS script