more readable jshint comments and fix bug with root bundle mid