Add Number.isInteger polyfil

Easy fix to get the Metrics view to work in Safari

Helps with #840 

/to @seanbrookes