Add matching in page

Fix bugs in regex
Use some shims to not require jQuery