Error displaying was functionized
Chrome.notifications will be used instead of alert()