The problem is that if you subclass ValidFrom, the generated javascript will try to look for an object with the same name as the class. However, the function that removes the namespace from the class ...