sentence: jayavarman ii ( r. 790-850 ) is widely regarded as a king who set the foundations of the angkor period in cambodian history , beginning with a grandiose consecration ritual that he conducted in 802 on the sacred mount mahendraparvata , now known as phnom kulen , to celebrate the independence of kambuja from java dominion .