Simple and Pure Javascript Snipets