upgrade to rails 4, and switch from prototype to jquery