Replaced eval method of plugin interaction with a web API.