re-added modernizr, pathname tweaks for server