JavaScript interface implementation playground