Fix intermittent javascript failures in PR script.
Merge pull request #3075 from waldenraines/karma

Fix intermittent javascript failures in PR script.