Update rem.js

Fix critical error (Exception: NS_ERROR_XPC_NOT_ENOUGH_ARGS) in old versions of Firefox