added javascript validation
Merge pull request #5 from ewu-wardj/master

added javascript validation