a cleaner approach to avoiding name collisions while accessing HTML resources