Updated to match new API URI.
Javascfript cleanup.