Fix jquery rails issues