Starting conversion to Javascript.