API clearing and demo.js added