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