jquery has it, I think we should just use it
remove test for dead code