update to the checkout.

tried to make the checkout more simple buy moving a lot of the javascript code into its respective template.