Advance javascript : John Resig