fixing bug on renaming folder (issue #259)
replacing getScript() jquery method by loadJS() method - closing #261
replacing getScript() jquery method by loadJS() method - closing #261