add js code of nav

add js code of nav