fix: moved interface code to header file (where it belongs)
Merge pull request #1 from ckruse/emscripten

moving interface code to header file (where it belongs)