Remove dependency on jquery