Cross Browser Javascript library for dynamically loading modules and heirarchy