improved join algorithm
Merge branch 'master' of github:shinout/jsrel