fix some problems that are similar to #34

fix some problems that are similar to #34.
Then, `andSelf()` has been duplicated from jquery 1.8+.

> Note: This function has been deprecated and is now an alias for .addBack(), which should be used with jQuery 1.8 and later.
http://api.jquery.com/andSelf/