Replace several jqmData() function calls with getAttribute() to improve performance. It is the same as #5466.