Created more javascript functions and unit tests

Created functions and unit tests for:
splitListStrUsingComma
sum
isOnlyWhitespace