Fix freelook, delta and move init to body onload