Change require statements to match the new SDK module layout

This should let #162 work.

With this change, I no longer see the error about memory.js.