javascript interface removing issues