make JSHint happy and remove some WTF-code

seriously, why the hell was that switch even there.

wtf.