refs #4151 refactored some more usages of _js hack