jaleksic 919 days ago. link 1 point ▲ ▼I know this is not strictly JS at all :) However I use this technique in several projects, always copy pasting a gist at GitHub. Thought I'd publish and share it, as it's really useful.