Added setNumberOfLamps config option

Number of lamps should now be modified via a call to setNumberOfLamps
rather than a direct modification of the javascript source.