Add CSRF token to request headers when using JS framework with rails