Why not use the jquery plugin version?