Javascript actor with multiple outputs