removed api path from entity
adapted js for new api