added Consecutive.js working with all test cases