cleanup

removed redundant code and got eweda.js to pass jshint