Made my code ~almost~ JSLint compliant