added doLog function to ath, log option
merged addtohomescreen.js