The function defined by the second script will overwrite the function defined by the first.
You can save a copy of the function from script A before including script B.
For instance:
<script type="text/javascript" src="Script A"></script> <script type="text/javascript"> var autoSave_A = autoSave; </script> <script type="text/javascript" src="Script B"></script> <script type="text/javascript"> var autoSave_B = autoSave; </script>
Note that if script A calls autoSave by name, the script calls the wrong autoSave and (possibly) terminates.
You can solve this by replacing autoSave functions before calling functions from a script using wrapper methods.
SLaks source share