Some minor optimizations to jquery-rdash