Lab work on javascript