daveg: removing the dependency on jquery.