javascript design patterns > cat clicker