Expose JS functions through GenServer RPC in Elixir