integrating makefile and js with bash script
fixing various bugs related to extensions

- adding nad restore
- adding nad open
- ensuring we backup original files before performing injections