Expose setMetric and incrMetric functions to phantomas browser scope

Allow webpage to call ``setMetric`` / ``incrMetric`` functions when being checked using phantomas to allow custom measurements.