worked on exercises using js