Distance traveled example

Take over #68 and fixes undefined symbols error at "_NSArray_ToJSValue".
Still has issues in constants.