Fundamental Text Processing with Javascript