redirect to https, initial version
check if https page exists
fixed conflict in main.js