Bug 1029385 - Rewrite app-makefile rule in javascript r=ochameau