refactor project structure and added jasmine-node for testing