Move js scripts from header to footer