Increment decrement dynamically in javascript bored and liked