add onEnd back no matter how we finish trip.js
add lots of jsdoc comments !
add grunt-jsdoc to generate docs !
update batch to checkout doc folder