Fixing require 'Date' and removing temporary files from index