Bug 1029967 - rewrite Makefile in email app in javascript

I have try this style but it broke gaia try server, I suspect the reason is we still use xulrunner 26 on gaia try server