getting bills JS to work