I have a function called save(), this function gathers up all the inputs on the page, and performs an AJAX call to the server to save the state of the user\'s work.
Looks safe to me. Javascript is single threaded (unless you are using webworkers)
Its not quite on topic but this post by John Resig covers javascript threading and timers: http://ejohn.org/blog/how-javascript-timers-work/