Angshu & Kiran | Changed JS code to generate id for entity when it does not exist.