If you're on PC, make sure every file within the save folder is copied over and make sure it's in the same location within the new version's www folder
For Android, just make sure not to delete the original game. When you install, overwrite files instead and the save should carry over