Reformatted app.js with smaller indents
Added prefetching for directive, circuit and assembler templates