My first experience with javascript