Moved from CoffeeScript to vanilla JS.