Add javascript for user menu