A Fun Javascript Exercise

Write the javascript to create a staircase with a function call of stairCase().  It should produce a result similar to below for stairCase(5) and stairCase(15):

#
##
###
####
#####

#
##
###
####
#####
######
#######
########
#########
##########
###########
############
#############