rewritten all calls to sync
updated jquery to new & minified