Fixed the upgrade js for retrieveing the latest version

Signed-off-by: emanuele <emanuele45@gmail.com>
And let install grab the latest version from github too

Signed-off-by: emanuele <emanuele45@gmail.com>