added JQuery .each()