fix RJS error in on_update.js.erb, use to_param

For models where id != to_param the form selector in on_update.js.erb does not match anything. 

This leads to an RJS error: "TypeError: Cannot call method 'update_flash_messages' of null". Replacing id with to_param in the selector fixes this.