As well as in Style Sheet windows, the javascript window should have something like a real time engine compiler, that would make easier to identify javascript errors in development.
With OutSystems we have dramatically improved the builtin javascript editor (with realtime validation, completion, even truechange refactoring). More info in Platform 10 release notes