Use single page for all codes.
Integrate jquery mobile and angular.js.

fixed: now camera can be use normally on android, but still have error
on ios.