Fixed a bug with relative path to executable js script