fixed an oops in the mai.js file witht he regexp code