JavaScript Basic: Writing JavaScript on HTML document