added pre javascript blocks to the html view