simple html 5 wave pendulum using coffeescript and processing.js