beginning javascript updates