Good and bad JavaScript code style