Remove _sum and _count JS optimizer

The optimizations added in 6bfee7e3 and 8aff0d7d embed compiled
regular expressions to detect JS versions of built-in functions and
substitutes them for the faster Erlang call. The compiled expressions
do not work in all version of Erlang. Additionally, the error behavior
changes but the user will not know why.