[fix bug 986038] Mozilla.ImageHelper does not take into account additional platforms

* Updated `Mozilla.ImageHelper` to support additional platforms such as iOS and Android.
* Added JS test suite.