Use radix in parseInt to prevent possible problems

The second parameter of parseInt should be specified to avoid possible problems, It is also reported as an error by JSHint.

Also some whitespace has been removed as part of the commit.

See:
- http://jslinterrors.com/missing-radix-parameter/
- http://nicolaasmatthijs.blogspot.cz/2009/05/missing-radix-parameter.html