javascript file for inheritance.html