add: handling error when burp status is not available
javascript refactoring to make it more readable + start to handle burp status errors