Remove useless spaces
Move up and clean var declaratrions
Add JSLint directives + code reformat