added javascript to form