Made script defer since SSR

Script should be defer from the page rendering and not blocking since the output from the server should carry the complete html