Adding entity js