better handling of multiple joins in joinr.js