Add ff 27 support to os.js
Land #2987 - Add ff 27 support to os.js