use enum
Merge pull request #98 from nla/js-Section-useEnum

use enum for getSections