Change name of JS object, fixed #290