add format js to checkout controller