JavaScript target bar that fills up when given a value