Bug 1028085 - rewrite Makefile of camera app in javascript