Removed dependency on jquery