1. Updated scripts to generate xface.js
2. Updated utils.js

[git-p4: depot-paths = "//xFace-Apollo/branches/test_opensource/": change = 16247]