Fixed bug, that prevented index from creation

Because "\r" where not replaced, the view was stuck in an endless loop. I also added "$", and "=" to be ignored. With that change i was able to build the view on a up2date couchdb replica of npmjs.