Good and bad examples of Javascript code