parsing qpid -> js