adds required js files by order of importance