Added JavaScript to enforce https use