Bugfix with opacity, Date.now() returns milliseconds in JS