moved inspectlet code to make faster page load