Avoiding the use of the prototype keyword for method definition