cross nodejs/browser alignment