begin to plant writing maintainable js code in my mind