Custom java script code to parser an e-mail