Revert "report errors even when the javascript compiler reports success"

This reverts commit 5dc918b943eff1f5f02930e14e71223abab164df.