Made library runnable on browser