Remove jQuery dependencies to make it compatible with other libraries