Giving this a bump because I have the same problem, I'm using the same phraser as truefreestyle (I got it from w3schools.com) and I'm not sure how to implement the code sommardahl posted.

...