Create get_entities.js