Trying to fix javascript interface issue