Adding js and email stuff