jquery live() deprecated, changes and testing for rails4