JavaScript codes for Web DEV