some exercises with JS