feat(js): add require for clientside;