plugin version with promises, sample page, windows8 working version