add dropdown menu generated by js