Improvements to jsPerf example

the guard for `if (element) {` shouldn't be needed as they should exist.