Fix tray.js

If there is input with name == 'id', `el.getParent('form').id` returns this field instead of id of the form.