Added tal condition for javascript.
Merge pull request #3 from lccruz/master

Added tal condition