Get gallery working with recent versions of django, jquery and feincms