adding https to embedded js