New API to re-run mainjs at every render, if it exists.
Update changelog and version. Closes #52