Deleting unused variable  at addJavaScript method