Hi Roman,
CallClient is a global function, not a method of the app object. But I am not sure about the client name and the command you should supply for the ApplyMasterPage functionality. I am trying out some stuff with the info in the linked thread and will post something here when I find the solution. Just my kind of fun for a sunday afternoon (in my country the day after Xmas is a holiday).
Kind regards
Jang