Add another parameter to existing js error reporting code.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Report errors based on user preference. All the cases taken care of.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Add appropriate msgs & js functions to handle user actions.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>