adding cash register js