How Does Google Docs Function Sum Javascript