fix some incorrect html

problem in an empty cart and bad placement of page-end javascript