port everything(lib*) into javascript