Fix event handlers and add foundation bower dependency.