first commit, changed from coffeescript to vanilla js