Dev/browser

use browser-based api instead of node-base api