intermediate state on getting runtime libs in js working