JavaScript options: small refactoring