a collection writing good javacript codes