Updated to match popular coding conventions: http://sideeffect.kr/popularconvention/#javascript