Improved JS handling, added top search, footer links