Let JavaScript can be referenced in HTTPS

Fix issue #2