Converted merge_requests.js to coffeescript and updated code