fix header, emit js evaluation