reloacted footer code to js
moved footer code to js