Hopefully fixed bug with opacity timings from js file and css transitions