added pendulum.js