A little javascript practice.