jQuery - JS Window

Reverted to prior code.  Modified jQuery to call autosave function
rather than bringing in as anonymous functions