Converted script files from CoffeeScript to JavaScript