js: space-age: pull method generator out and rename it