How to write a Simple Java Script for Web Programming