A bunch of Javascript idiosyncrasies.