quick jquery fix for rails 4