updated cardreader js spec