Use glotpress_id as identifier between JS and PHP.