make js options work