Use Date.now when performance.now doesn't exist
Fix null placeholder issue