adding patterns and input to circle.js