Changes for search functionality

Also includes changes for displaying headers
Added a urlSuffix parameter
A lot of javascript/code fixes