changes in jquery code, edit category in index question