JavaScript as option