Javascript OOP Form Validation