panel now works again

added "use strict" pragma & fixed typo's