Cleanup preparing for js stock output