Add getJson and dialog.js