replace defaultOption.js with json file
refactoring
update test