Clean up script tags and place at end of pages so rendering is blocked a
bit less
Fix previous/next starting from empty field
Cleanup script tags