remove old server directory
fix jshint issues