This good idea.
I have made extension jsHelper. The same idea - to prevent collisions.
Except for it jsHelper solved other task - to include a js-script in html-header at any time generating of a content. Use hook hd-head and in general anyone hooks from header.php narrows opportunities of the developer. It happens it is necessary to include a js-script already after header.php has been caused.
jsHelper extension solves also this problem too.
That it worked, it is necessary to have js-scripts in one directory on server, for example root/js/
It should become the agreement.
Example of connection jquery:
$jsHelper->add ($base_url.'/js/jquery.js');
Some extensions, can make this call.
In html-header will be only once:
<script type = "text/javascript" src = "http://example.forum/js/jquery.js"> </script>
Try extension: http://punbb.ru/downloads/jshelper.zip (1kb)
sorry my english