<style>
.white{color:white;}
.black{color:black;}
<style/>
<script>
for(var a=1;a<=5;a++){
for(var c=1;c<=5-a;c++){
document('<i class="white">*</i>')
}
for(var b=1;b<=2a-1;b++){
document.write('<i class="black">*</i>')
}
document.write('<br/>')
}
</script>