fixed Karma error and added select2 to project in Javascript files.