Fixed JS errors, move paypal button,added conditional submit button on pay type