Check in jQuery until I decide whether to drop the dependency on it