The online trick helping people get a better night's sleep