HTML5 Game Development Working with Inventory System, NPCs and Battle System