Extract js. Clean up form.