Javascript Slicing API Live Tester

Hi, I have been trying to use the Kiri:Moto API by following the example but when I run it locally, the slice() function does not return anything—no errors, no output. The program flow also stops at the slice() function call.

I am also getting the console log error Failed to load resource: the server responded with a status of 404 (Not Found) for the file code/kiri_work.js?3.2.1:1. Could that be related to the error?