Reading maps txt with ajax but with some bugs yet