Changed function name
Changed method description
Updated JS constants to camelCase