Fix warning on unset attribute var.
Fix the JavaScript URL location.