Small Mootools-like implementation in jQuery