get correct js path from bower's array of paths