Use jQuery to load xml to make code consistent

v1-v2 optimize code structure.

This patch modify load xml code to jQuery grammar to make code
consistent. And fix bug in Chrome.
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>