update ui/appframework.ui.js

fix something wrong about pull to refresh
fix pull to refresh
improve "pull to refresh", make the refreshing status to reflect the real time
format the source code using TAB instead of Space
Merge pull request #748 from qicrosoft/master

fix something wrong about pull to refresh