Put correction for the issue#8 in a function
Change push to accept an optional argument as show in the official documentation of push for JS