fixed a bug in reverse.js where the dollar symbol would not appear