Converted email script into jquery