Module needs to use the BrowserExploitServer mixin. Please see:
https://github.com/rapid7/metasploit-framework/wiki/How-to-write-a-browser-exploit-using-BrowserExploitServer