Javascript Tuple Space Implementation