Fixes the directory settings, adds jquery, fixes urls