Fixes

1. Fix broken errors tab
2. Move utilitary funcions to Utils.js