It seems like the javascript code is not aware of the source it originated from, so there should be no issue with merging it together, but...
Personally, I would advise keeping the scripts separate. This will make it easier to manage versions and updates. Since browsers often cache scripts for repeat visits, the difference between loading one or two scripts isn't significant. However, when updates are made, the client will only need to download half as much. Considering that caching is common, this shouldn't be a major concern.
Therefore, for simplicity's sake, I recommend keeping the scripts in their original states. Especially since you mentioned that you are not very familiar with javascript, this approach is the safest. If something goes wrong, it will be easier to troubleshoot without having to determine if you caused the issue or if it was already present.
Additionally, keeping the scripts separate allows for easier re-ordering. For example, if you are using two scripts that both utilize the same terminology like `$` in jQuery, having them separate provides clarity and avoids conflicts.