Orbital models by Dennis Duke converted to Javascript