JSON API: remove namespace, change the way the function is called

As per https://github.com/Automattic/jetpack/pull/1322#issuecomment-63960900