depracating javascript in helper method used in pre-assets pipe-line code

This fix is part of issue #89.