add javascript to form