added function stop to script.js