capture and report syntax error position for js attributes