Fix errors in samples and stop using require() for classes and namespaces below vvRestApi