fixed indexOf undefined
Merge branch 'mobile' of https://github.com/fourbroad/agilenotes into mobile