Update for html tags and substring method

Update LINK tag to lowercase as per html standards (was bothering me), update uri function to use better-performing method.