Custom spinner with CSS and a JavaScript function for decorating elements with it