Move js scripts to header