converted skinner.js to funcjs arch