Added javascript to call note controller using JQuery Ajax