Improving show more / show less action in JS.