[ecosoltur] fixing js to keep page references correctly