Reorganize javascript files so that nothing gets required accidentally