Refactor Code and add 2 properties

The code was refactored, removing duplicate JQuery selectors and using
JSHint and JSLint. Two new properties, and onlyNumbers StrZero were
added, the latter can only be used if the first is true.