Removed jQuery dependency from inherit function