general cleanup of magazine.js...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>