fix jquery object reference bug in script.js