deposit: js fix when rendering form