more text and fix errortype in javascript