header to coordi and fixed JS  bug