Fixed issue with sending [object Object] when using jQuery