removed dependency on jquery