Using thrift js:jquery