Refactoring

Added window. to all global functions/variables
Merge branch 'master' of https://github.com/Bibbytube/Instasynch