add item view javascript