Removed JS code
Fixed bug in OnQualifyUrl