Fixed Supercal popup calendar

This is shite code. Do not fork into the Supercal repository - it needs
a rewrite.