Fix JS to not set on window, add save and cancel button, try switching to coffeescript