remove dependence on jquery