Removed https from domain to let browsers page decide on the correct scheme to use
Added some JSDoc comments