jQuery migrate for rails