fixing internal js paths