check the type/language of script elements