new iteration. Used jQuery instead