added "if statement" to script.js file
added workspace file to idea folder