change js script
Fix alerting script