Fix openurl and add gitnpm function