updated the js and added some css effects