Javascript document object notation - Json based dom manipulation