This is just a quick port of [executable](https://github.com/kevva/executable) by [Kevin Mårtensson](https://github.com/kevva/) for use in Firefox extensions.