Fix switch java script
Add better ssh completion