Added ability to use JavaScript function to evaluate the plurality.

Updated the tests to be executed in one file instead of running each
test in its own file one-by-one.

Added tests to test the new function-form of plural evaluation.