Interface for JavaScript