Added JShint directive
Use radix for parseInt()