See documentation at https://javascriptorian.com/webmage