added js to keep cube rotation speed consistent on refresh