Fix bug: enable javascript; set download listener