i'm also open to being told that the above is better than jquery