fixed wp-api.js url for wp_enqueue_script