js hint best practices