Simplify JavaScript interface