Django 1.6x JS compatibility fix