Changed html insert method to prevent tag stripping in some browsers