add error checking from main app to bookmarklet