Jquery step by step with Javascript