updated script.js after testing the timings