Fix data for js.