Modular JS + timeout on resize + HTML title and intro

Transformed the function in a module and introduced timeout after
resize event + added title and intro paragraphs in the example html file
Fixed namespace errors for linter + updated minified file