The javascript application shown below is defined by the following: