Fixed missing string.toLowerCase in field name JS

Signed-off-by: Elliot Condon <e@elliotcondon.com>