refactor libraries into their own npm robotjs module; add require for lib