Update script.js

Added stop effect into mouseout event.