remove abused promise.
add missing semicolons.
support HTTPS URLs.