Fixed jslint. Renamed Promise to JSONPromise due to redefinition error from lint