fix  undefined bug
Merge branch 'dev' of https://github.com/fourbroad/agilenotes into dev
prevent to throw error under ie