A collection of common patters in vanilla JavaScript, without libraries