Made all changes over to jQuery

All functions seem to be working