Refactor javascript & Create orders page
A big commit

paypal WIP
update database
clean unnecessary images