use ssl for js