Added first draft of javascript I/O