JS icon validation