modification to isTrack and isCompiledJS functions