issue #1758 : better way to parse path for of modules javascripts that depended

better way to parse path for javascripts of modules that depended.