Action for new done.
Improving javascript organization.