I have built an algorithm in JavaScript, now I wish to use this algorithm on my ionic 2 application. Ideally, I would like to avoid having to translate the entire algorithm to typescript. So far, i've had some success running javascript in the index.html page but can't seem to be able to CALL those functions from the .ts files.
Can someone please give me some suggestions on ways to integrate my js algorithm in my ionic 2 application, or should i just bite the bullet and use typescript?
Thanks