Fix Javascript exception - this wasn't working live anyways