Updated physics_simulator/trunk

1. Adopt inheritance in javascript to model physics object
2. Customized javascript event to support canvas resize and other
display settings

TODO:
1. iterative solver to implement a "pile of boxes"
2. soft body simulation using mass-point model