fixed error from js file reading comment and write new method for texts to be sent