a super simple photographic flash calculator in javascript