Converted coffeescript to js for accessibility