fix console.error typo, remove trail comments