remove weird things at the end of jquery mobile