begin js