Renamed variables to use $ prefix for jQuery objects everywhere.