fixed JS bug // Elshiko