max was converted to zero based twice. Removed -1 in the switch up call that prevented the stream from switching to the highest index.
Merge branch 'development' of https://github.com/Dash-Industry-Forum/dash.js into development
Integrated support for grunt jsdocs and added stubbed docs and examples to media player and debug class for a start.
Merge pull request #272 from AkamaiDASH/jsdocs

Added JSDoc3 via grunt to project for full documentation support.