log gp messages to javascript console