updated jquery client to stringify and encode