Update amazon-linker.js

Remove extraneous bits of JS that were breaking this code.