Load javascript securely