Modified mockapi-browser.js to make all API calls synchronous

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>