add action via javascript