Setting up code auto-formatting and jslint / jshint tips.
Adding detection for the edges of the screen, and repositioning the panel to open above or to the right if necessary.
Also checking for 'disabled' pseudo class and setting 'active' classes on the button, so it can be more easily skinned with CSS.