learning to work with javascrip