removed the HTML generation (now part of the js api)