make app Firefox OS 2.2 compatible

could it be replaced with `var usePromise = !(version && version.length === 2 && version[1] < 37)` ? that way it should work on other browsers if they decided to implement the last version of the API