js compilation pending xhr