front-end best practices