Transfer js of form into local