one timer js working. draft 1