Added mockapi js for running on browser

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