fix url matching
and requiring jquery.