Add size control to js