Program selection

add js cookie function