moving default payment js variable into core