working physics example (html5)