mastering javascript step by step for navigation