Fixed a bug that causes undefined values to be copied
Fixed the ordering of background scripts in the manifest