changed dir structure and initialised ajax module