Added "data-exit" to HTML loader

As simple as it sounds : allows to define an exit function from the HTML code.