Ported GJK to JS. A little buggy at the moment.