3rd commit - function js error treatment