Added javascript for basic event navigation