cleaning with jshint and pycharm
moved the error output above normal output