refs #4151 refacoted some more usages of _js hack