Define consistent data format

- All data use string (in ajax, all data will be converted to String)
- Fix bug when drawing dots, it draw lines