Removing hard jQuery dependencies