create magnifier.js

Unfinished but compiles fine.