Added jsdoc for ipcstr2arraybuffer
Removed dedundant var from demo js code