[FxOS Tilescreen] JS error fix