Dependency problem

I tried to apply danmactough's pull request but had no luck getting following error

- Uncaught Error: Module name "underscore" has not been loaded yet for context: _. Use require([])
- [Backbone Dev Tools] Couldn't find Backbone 

The error was due to the dependency, and have found another way based on  danmactough's code and worked fine for me.

In 'requre.config', I had to set the proper location in order for 'require.js' to find the libraries location.