wordy calculator in javascript & ruby