Invoking actions from Javascript