rewrote with the new W3C specs

also, removed jQuery