Made examples take jquery from google. Changed undefined checks to !!.
Changed step function to use Apply.
Refactored p function calls.