working on a base JS version instead of a mixed one with the DOM