Add javascript wrapper & tests for IPC queue functions