fix bug when cleaning up browser definitions at startup
fix jshint error