add some scripts optimization. Include in footer whatever can be included there