Refactor JSO and Impl packages to handle conversion between list & js array.