effecive java script code examples