Change fields from javascript to jquery