fixed: JS API error value parsing in callback handler