Update skate.js

Always expose window global so that the library can be used synchronously.