Snippets of in-house JS framework