javascript error message is refined (but line number is still wrong)