Write build script for mozapp