Copyright (c) 2017 JS Foundation and other contributors