Added javascript to read button ids.