initial switch to leafjs