Jspkg is a script concatenator/builder that takes into consideration dependencies between javascript files.