Added JS that was gutted from mailpile.js