Common API JS template fix for arguments passing