Make js runable by move footer include to headerinclude