Added editor parameter into callback function in jQuery