Update options.js

updated the script for validation of string length