updated js to respect https://