Utilities for Javascript plug