Auto detection of files path at startup, first ajax implementation