fixed bower dependency issue

added a debug option in the app.py for using a local toc json file