Make your javascript application code maintainable