convert angular output to vanilla javascript