part of JQM code, added about 1 year ago when start to learn JQM. not completed.