Fixed behaviour of truncator when run on multiple JS files.