Register action.js for each action so that we can split out the script
from html.