change ThrowException() implement to fix pointer error when call JS function from Go