port jot to spin.js