Detect JS sum() and replace with _sum

BugzID: 11210
Add regex for common JS implementations of _count

BugzID: 11210