Validate js code before sending to output screen. #115