Implements the select2 plugin.