Applied some JSLint tipps