moved js scripts to header