Added compatibility with older jQuery versions

No longer supports <ul> as containers