updated JS document as per http://speakingjs.com/es5/