Bug 1029967 - rewrite Makefile in email app in javascript

Use getSharedJs(parse, appDir, exclude, onFileRead) , since clock app doesn't need onFileRead.