adding interface and js