Added magic.js file, referred to in the cheat sheet