action to js