Better isNumeric check on numbers
Updated to properly use require

Removed global app object