Added on comment and fixed a couple of JSLint complains