added json api, added .js to disable controlbuttons