Fixed JavaScript implementation to pull from ride

Pulls from the ride table rather than the user table