Use plugins_url to get WP_PLUGIN_URL
Use closure to pass correct api value
Compress JS
Version 1.1