Now leaving script intact when syntaxerror occurs in IO/edit. Added checkSyntax() method to controller