Create piglatin.js

How to test for a vowel efficiently?