Tiny fix in join JS, forgot a 'var' on last edit.