jQuery Mobile Gallery with PHP Backend and support for subfolders