moved sorter logic to seperate file
using new jquery mobile version 1.4.1
moved opening js code to seperate file