Make the routine for combining javascripts much more efficient and faster by using a callback