use document.currentScript to refactor
add get & set methods