fix issues: js scripts being executed after inputting/pasting , missing semi colon