updated demo.py to use requirejs, added JSON file demo