Javascript entity