cleaned up

created calculateWarmups, moved cookie methods to js file