bugfixes. remove performance.now.