Make js work in measures form.