Added replacement of \A with ^ and \z with $ to fix integration with judge
Add a method to get the class name from a data attribute to allow for namespacing