Write a Javascript module and expose it through whatever is available