The languageArray function is used for creating an array of available languages for use in a jmSelect function call.