refactor error display for javascript
fix null error when adding line widget for compile errors