Type selector component and fixing jshint for dropdown