Removed dependency on jQuery