Changed button javascript for both index and zoo