Append to <head> and include scripts only once if we can