es6 conversion

Signed-off-by: Chris Thoburn <runspired@gmail.com>