my javascript code for practice