jslint cleanups.  bug fixes in panel edit.