finished the validate js, let the constant refactoring begin