#reader(lib "htdp-beginner-reader.ss" "lang")((modname location) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(define-struct world (lat long))
(define initial-world (make-world 0 0))
(define (update w lat long)
(make-world lat long))
(define (world->string w)
(string-append "("
(number->string (world-lat w))
", "
(number->string (world-long w))
")"))
(define (draw w)
(list (js-p '(("id" "aPara")))
(list (js-text "(latitude, longitude) = "))
(list (js-text (world->string w)))))
(define (draw-css w)
'(("aPara" ("font-size" "30px"))))
(js-big-bang initial-world
'()
(on-draw draw draw-css)
(on-location-change update))