adjust bower order to impact index.html script order; fix issue of options generated by angular
Remove document definition to avoid problem in android webviewer