checked the code with jslint and removed some testpanels