added update to particle
more work on update
more work with particles added javascript support to particle update