Added show/hide functionality for top panel. Still haven't tested it on
Nexus though. Cleaned up JavaScript.