Refactor to pass JSHint

* Use dot notation for properties object
* Use === instead of == for empty string comparison
* Add the radix parameter to parseInt()