Having fun with my first javascript program