No particular reason, just my limited experience with JavaScript. I'll refresh and fix all the issues you pointed out.