fixing consultas e javascript merge