Updated magazine.js