Moved JS out of edxnotes_wrapper.html and in its own RequireJS module.