Fixed JS error in inline templates by removing old code from tests