Firmware update method for end-users (Feature Request?)

I just read this other thread with the same problem. @bryce can you say if a local particle-api-js is required for flashing, or should the code above work simply with the jsdelivr embed?