fixing bug in js paths