removes redundent JavaScript includes in application layout