move email vars out of $(document).ready