move notification string code out of app.js into draw library