onComplete returns the updated li instead of the ul
minified version with google closure using simple optimization
IE7 and IE8 compatible
updated with iecompatibility changes