Fix indent of the js files

v1-v2 keep the comment the orginal way.

1 Replace tabs with 4 spaces
2 Add space after "if"
3 Add space before and after ":""="
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>

Reviewed-by: Xin Ding<xinding@linux.vnet.ibm.com>