Switching to a js-only way of using processing