maintainable javascript