Finished updated javascript so cocoon and select2 work together
Fixed a bug