bug fix for javascript path