fixed javascript to only load when needed
fixed dropdown menus for path