AFAIK, you can not use macros in a web page (DAP).

Are you wanting to run this in a web browser on a web server?