Variable name fix in success callback

Changed variable name x to result