extract html from js file ref #287