fix slow javascript minifiction.