The INSTALL file lists two commands (maybe more) that install stuff: make install and make install-hotplug. if the package doesn't offer a 'make uninstall' command then you could run
( make -n install 2>&1; make -n install-hotplug 2>&1 ) | tee /tmp/installer.log
to have it go through the motions. Now if you read back the contents of "/tmp/installer.log" you should be able to see which files end up where (look for install, cp, mv, cat or echo commands). Instead of just deleting those files it's suggested to move them elsewhere first and see if that works. For example
tar -cf /tmp/files.tar /usr/local/lib/foo2js --remove-files
would recursively move contents from inside /usr/local/lib/foo2js to the /tmp/files.tar archive.