A JavaScript class which validates various standards/formats