Improve using variables in cherry-plugin.js