add Jasmine testing suite and test-1

add testing
refactor math into functions