create a skeletal index.html
include javascript source files
draw border around rectangle
abstract the context
draw cart
draw pendulum
introduce options
introduce position
introduce draw functions
introduce a helper.js
use helper.js
introduce view options
use problem to determine state
set initial angle off center
animate the problem