Javascript

I want to add some converters to my site and am wondering if javascript will do what I want. There will be lots of boolean analysis and string manipulation. (Things like “if there’s a vowel that isn’t followed by another vowel or an n or an r, then add a space after that vowel.”)

I’ve looked around the Web but haven’t seen programming advice on this particular approach. Can javascript can handle this? Any book or website recommendations for learning this programming language?