Use a transform to create javascript for html pages