update script.js - Added a missing line

The function wouldn't work without this.

One more thing I think that should be mentioned, is that the ``$(window).resize(function () {`` should be inside the ``jQuery(document).ready(function($) {``. Otherwise it wont work. (I didn't edit it though)
Merge pull request #709 from elron/patch-27

update script.js - Added a missing line