Fix some JSLint warnings

Let's see how [this graph](https://ci.owncloud.org/job/ownCloud-Server%28master%29/violations/?#jslint) will change :)

@blizz @DeepDiver1975 @MTGap @schiesbn @VicDeo @tanghus @kabum @raghunayyar @jancborchardt