more legacy stuffs. tested and verified jquery 1.4.3