fixed dropdown collections and javascript, arrays in document and checkboxes still broken