Update README.md

always define your variables at the top. defining them elsewhere is confusing because of hoisting. there is no block scope in javascript.