Auto generate internal-extension JS API file