moved existence checking to JS section; added numbering