adding fixes for convert process and added gethtmlfromid function to server.js