typos and jquery 1.8 fix