added javascript to btn