javascript syntax adjustments
javascript syntax adjustments