Fixed Javascript interface