fixing https://github.com/robnyman/Firefox-OS-Boilerplate-App/issues/51