Final Changes

Script is working in the terminal, but not yet in the browser