examples of terrible behavior in javascript