Modernizr.testProp() is invokes once instead multiple calls in a function