changed implementation to use Pimp to generate pimp for the browser