Fixes URL parameters, removes hidden attribute comments and centralizes tax calculation