Javascript document object model notation - Json based dom manipulation