Using javascript and maths to make mountainous terrain.