simple javascript exercises