Fixed the JS scripts.