add a js effect for small screens' menu