moved inlined js to perfmatters.js