[os] missing var decl, should use jslint

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>