Allowed Emscripten to recognize and compile .m and .mm files
(Objective-C and Objective-C++, respectively)
Simplified code by using a tuple in combination with `endsWith`.
Merge pull request #1203 from michaeljbishop/objc-support

Allow Emscripten to recognize and compile .m and .mm files