put back newsize in js