Fix freelook and move init to body onload